package _9993LanJieGuoLv;

import _9993LanJieGuoLv.impl.AuthFilter;
import _9993LanJieGuoLv.impl.DebugFilter;

/**
 * @Test: 拦截过滤模式 测试类
 * @author: ZBoHang
 * @time: 2021/9/18 11:29
 */
public class Test {
    public static void main(String[] args) {
        FilterManager filterManager = new FilterManager(new Target());
        filterManager.setFilter(new AuthFilter());
        filterManager.setFilter(new DebugFilter());

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("home");
    }
}
